package com.beeasy.tools.bean.mapper;

import com.beeasy.tools.bean.AbstractMapper;

import java.util.List;
import java.util.Map;

public class ArrayToStringMapper extends AbstractMapper<Map> {

    @Override
    public Object to(Object src, String targetKey, Map params) {
        List<String> val = getValue(src, targetKey);
        return String.join(",", val);
    }
}
